RxMIDI is an XFCN that gets MIDI data (up to count bytes, decimal) in hex, if any are available.
Here are a few XCMDs to implement simple MIDI communication via a standard MIDI interface on the modem port. Please let me hear your thoughts. If there is interest in a full featured HyperMIDI interface with MIDI event filtering, time stamping, sequence record and playback and save to file, etc., let me know.
Nigel J. Redmon
CIS: 72736,753
PAN: NIGELR
See also InitMidi*, ResetMidi*, and TxMidi*
-- part contents for background part 7
----- text -----
Syntax:
RxMIDI([<count>])
If count is omitted, 1 is assumed. Note that this function does not wait for count bytes, but asking for a bunch gives them to you faster than making HyperCard go through the overhead of repeatedly asking for a single byte. If no bytes are available, null is returned. If count is "f[lush]", the receive queue gets flushed. Active sense bytes are filtered by the interrupt handler (so your DX7 wont fill the buffers up with FE's). Ex.: put RxMIDI(16) into myString